const nav = document.querySelector('header')
const download = document.querySelector('.download')
const windows = document.querySelector('.download_wrap .windows')
const mac = document.querySelector('.download_wrap .mac')
const lift_left = document.querySelector('.lift_left')
const lift = document.querySelector('.lift')
const wechat = document.querySelector('.lift .wechat')
window.addEventListener('scroll', () => nav.style.boxShadow = ' 0px 20px 30px -8px rgb(0 0 0 / 10%)'
)
download.addEventListener('mouseenter', () =>
    download.style.backgroundColor = '#36a82f'
)
download.addEventListener('mouseleave', () =>
    download.style.backgroundColor = '#60c15b'
)
windows.addEventListener('mouseenter', () =>
    windows.style.backgroundColor = '#2e84e6'
)
windows.addEventListener('mouseleave', () =>
    windows.style.backgroundColor = '#459cff'
)
mac.addEventListener('mouseenter', () =>
    mac.style.backgroundColor = '#36a82f'
)
mac.addEventListener('mouseleave', () =>
    mac.style.backgroundColor = '#60c15b'
)
wechat.addEventListener('mouseenter', () => {
    lift_left.style.display = 'block'
})
wechat.addEventListener('mouseleave', () => {
    lift_left.style.display = 'none'
})
